furny.ga.logger.entities
Class GeneEntry

java.lang.Object
  extended by furny.ga.logger.entities.GeneEntry

@Entity
public final class GeneEntry
extends java.lang.Object

Database entry for an genotype.

Since:
11.08.2012
Author:
Stephan Dreyer

Field Summary
private  long furnId
          The furn id.
private  long id
          The id.
private  int rotGene
          The rot gene.
private  int xGene
          The x gene.
private  int yGene
          The y gene.
 
Constructor Summary
private GeneEntry()
          Instantiates a new gene entry.
  GeneEntry(RoomVector vector, long furnId)
          Instantiates a new gene entry.
 
Method Summary
 long getFurnId()
          Gets the furn id.
 long getId()
          Gets the id.
 int getRotGene()
          Gets the rot gene.
 int getXGene()
          Gets the x gene.
 int getYGene()
          Gets the y gene.
 void setFurnId(long furnId)
          Sets the furn id.
private  void setId(long id)
          Sets the id.
 void setRotGene(int rotation)
          Sets the rot gene.
 void setXGene(int x)
          Sets the x gene.
 void setYGene(int y)
          Sets the y gene.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private long id
The id.


xGene

private int xGene
The x gene.


yGene

private int yGene
The y gene.


rotGene

private int rotGene
The rot gene.


furnId

private long furnId
The furn id.

Constructor Detail

GeneEntry

private GeneEntry()
Instantiates a new gene entry.


GeneEntry

public GeneEntry(RoomVector vector,
                 long furnId)
Instantiates a new gene entry.

Parameters:
vector - the vector
furnId - the furn id
Method Detail

getId

public long getId()
Gets the id.

Returns:
the id

setId

private void setId(long id)
Sets the id.

Parameters:
id - the new id

getXGene

public int getXGene()
Gets the x gene.

Returns:
the x gene

setXGene

public void setXGene(int x)
Sets the x gene.

Parameters:
x - the new x gene

getYGene

public int getYGene()
Gets the y gene.

Returns:
the y gene

setYGene

public void setYGene(int y)
Sets the y gene.

Parameters:
y - the new y gene

getRotGene

public int getRotGene()
Gets the rot gene.

Returns:
the rot gene

setRotGene

public void setRotGene(int rotation)
Sets the rot gene.

Parameters:
rotation - the new rot gene

getFurnId

public long getFurnId()
Gets the furn id.

Returns:
the furn id

setFurnId

public void setFurnId(long furnId)
Sets the furn id.

Parameters:
furnId - the new furn id